<template>

<el-row :gutter="20" style="height:100%">
  <el-col :span="18" style="height:100%"><viewFile v-bind:wpsUrl="jwpsUrl" v-bind:token="jtoken" /></el-col>
  <el-col :span="6"><div><rightMenu></rightMenu></div></el-col>
</el-row>
</template>
<script>
    import viewFile from '../components/view'
    import rightMenu from './rightMenu'
    export default {
        data(){
            return{
                jwpsUrl:'',
                jtoken:''
          }
        },
        created() {
            this.jwpsUrl = sessionStorage.wpsUrl;
            this.jtoken = sessionStorage.token;
        },
        // 通过组件渲染wps的 iframe 框架
        components: {
            viewFile,
          rightMenu
        }
    }
</script>